<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/* JoomLeague League Management and Prediction Game for Joomla!
 * @version $Id: edit_event_nav.tpl.php 1126 2008-06-09 05:45:04Z julienv $
 * @package Joomleague
 * @copyright Copyright (C) 2007  JoomLeague
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see _joomleague_license.txt
 *  
 * Homepage: http://www.joomleague.de
 * Support: htt://www.joomleague.de/forum/
 * 
 * This file is part of JoomLeague.
 *  
 * JoomLeague is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Please note that the GPL states that any headers in files and
 * Copyright notices as well as credits in headers, source files
 * and output (screens, prints, etc.) can not be removed.
 * You can extend them with your own credits, though...
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
*/ 

?>
<div id="matrixgameseventsnav">
<ul>
<?php
 $list_init=false;
 if (isset($overall_config['use_jl_substitution']) && $overall_config['use_jl_substitution']) { 
  $list_init=true;
  ?>
  <li class="first">
  <a href="javascript:void(0);" 
     class="slide" 
     rel="startingSquads"
     onclick="if (checkforchanges()) { 
      jl_ajaxLoad('<?php 
        echo $this->url
            . '=editEvents'
            . '&amp;p='.$this->project->id
            . '&amp;mytask=editsquad'
            . '&amp;mid='.$this->match->match_id
            . '&amp;team='.$this->hometeam->id
            .JL_ITEMID_SUFFIX;?>', 'editarea');}">
    <?php echo jl_utf8_convert(_JL_STARTING_ROSTERS.' '.$this->hometeam->name);?>
  </a>
  </li>
  <li>
  <a href="javascript:void(0);" 
     class="slide" 
     rel="startingSquads"
     onclick="if (checkforchanges()) {
      jl_ajaxLoad('<?php 
        echo $this->url 
          . '=editEvents'
          . '&amp;p='.$this->project->id
          . '&amp;mytask=editsquad'
          . '&amp;mid=' . $this->match->match_id
          . '&amp;team=' . $this->awayteam->id
          . JL_ITEMID_SUFFIX;?>', 'editarea');}">
    <?php echo jl_utf8_convert(_JL_STARTING_ROSTERS.' '.$this->awayteam->name);?>
  </a>
  </li>
<?php
 }
 if (isset($overall_config['use_jl_events']) && $overall_config['use_jl_events']) {
?>
  <li<?php  if (!$list_init) echo ' class="first"'; ?>>
  <a href="javascript:void(0);" 
     class="slide" 
     rel="editEventsArea" 
     onclick="if (checkforchanges()) { 
      jl_ajaxLoad('<?php 
        echo $this->url 
            . '=editEvents'
            . '&amp;p=' . $this->project->id
            . '&amp;mytask=showevents'
            . '&amp;mid=' . $this->match->match_id 
            . JL_ITEMID_SUFFIX;?>', 'editarea');}">
    <?php echo _JL_ADMIN_EDIT_FORM_MATCHEVENTS_TITLE._JL_ADMIN_EDIT_FORM_MATCHEVENTS_TITLE_EDIT;?>
  </a>
  </li>
<?php
 }
?>
</ul>
</div>
<div style="clear:both"></div>
<div id="editarea"></div>